<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>projectName的目录结构： | 老李的个人博客</title>
    <meta name="description" content="老李的个人网站，记录着自己的个人成长。">
    <link rel="icon" href="/logo.jpg">
    
    <link rel="preload" href="/assets/css/0.styles.1db6e86b.css" as="style"><link rel="preload" href="/assets/js/app.9a5f4f15.js" as="script"><link rel="preload" href="/assets/js/2.fb839ad7.js" as="script"><link rel="preload" href="/assets/js/6.529193cc.js" as="script"><link rel="prefetch" href="/assets/js/10.3edf41db.js"><link rel="prefetch" href="/assets/js/11.7ba525f6.js"><link rel="prefetch" href="/assets/js/12.bf9d74b3.js"><link rel="prefetch" href="/assets/js/13.b1401722.js"><link rel="prefetch" href="/assets/js/14.35ef07af.js"><link rel="prefetch" href="/assets/js/15.ffbfdd10.js"><link rel="prefetch" href="/assets/js/3.ce5bc181.js"><link rel="prefetch" href="/assets/js/4.76416af2.js"><link rel="prefetch" href="/assets/js/5.1b1ec201.js"><link rel="prefetch" href="/assets/js/7.efd2306a.js"><link rel="prefetch" href="/assets/js/8.92fb4af1.js"><link rel="prefetch" href="/assets/js/9.548be40e.js">
    <link rel="stylesheet" href="/assets/css/0.styles.1db6e86b.css">
  </head>
  <body>
    <div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">老李的个人博客</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">算法学习网站</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://leetcode-cn.com/problemset/all/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  力扣
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div><div class="nav-item"><a href="https://www.runoob.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
  菜鸟教程
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Python</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/blog/Django/" class="nav-link router-link-exact-active router-link-active">Django</a></li><li class="dropdown-item"><!----> <a href="/blog/HTML/" class="nav-link">HTML</a></li><li class="dropdown-item"><!----> <a href="/blog/Python/" class="nav-link">Pthon</a></li></ul></div></div> <!----></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">算法学习网站</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="https://leetcode-cn.com/problemset/all/" target="_blank" rel="noopener noreferrer" class="nav-link external">
  力扣
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></li></ul></div></div><div class="nav-item"><a href="https://www.runoob.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
  菜鸟教程
  <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">Python</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/blog/Django/" class="nav-link router-link-exact-active router-link-active">Django</a></li><li class="dropdown-item"><!----> <a href="/blog/HTML/" class="nav-link">HTML</a></li><li class="dropdown-item"><!----> <a href="/blog/Python/" class="nav-link">Pthon</a></li></ul></div></div> <!----></nav>  <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>projectName的目录结构：</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/blog/Django/#projectname的目录结构：" class="sidebar-link">projectName的目录结构：</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h2 id="projectname的目录结构："><a href="#projectname的目录结构：" aria-hidden="true" class="header-anchor">#</a> projectName的目录结构：</h2> <div class="language- extra-class"><pre class="language-text"><code>projectName/
  |---manage.py
  |---mysite/
  |---__init__.py
  |---settings.py
  |---urls.py
  |---wsgi.py
</code></pre></div><p>目录和文件的作用分别是：
mysite/：是项目的容器，可以为任意名字。
manage.py：一种让你可以使用各种方式管理Django项目的命令行工具。在projectName/ 目录下输入python3 manage.py help，看一看它都能做什么。
内层的mysite/：包含项目，是一个纯Python包。你可以在包里调用它内部的任何东西。
__init__一个空文件，告诉Python这个目录应该被认为是一个Python包。一般，你不需要去修改它。
settings.py：Django项目的配置文件。
urls.py：Django项目的URL声明。
wsgi.py：作为项目的运行在WSGI兼容的Web服务器的入口。</p></div> <footer class="page-edit"><!----> <!----></footer> <!----> </main></div><div class="global-ui"></div></div>
    <script src="/assets/js/app.9a5f4f15.js" defer></script><script src="/assets/js/2.fb839ad7.js" defer></script><script src="/assets/js/6.529193cc.js" defer></script>
  </body>
</html>
